package de.justphil.tcg.tcgserver.commons.management;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

import de.justphil.tcg.tcgserver.commons.config.RestConfig;

public class Application {
	private static final EntityManagerFactory entityManagerFactory = Persistence
			.createEntityManagerFactory(RestConfig.ECLIPSE_LINK_PERSISTENCE_UNIT);
	
	private static final DataManager dataManager = DataManager.getInstance();

	public static EntityManagerFactory getEntityManagerFactory() {
		return entityManagerFactory;
	}
	
	public static DataManager getDataManager() {
		return dataManager;
	}
}
